package com.nbgroup.mapper;

import com.github.pagehelper.Page;
import com.nbgroup.pojo.dto.PageOperLogDto;
import com.nbgroup.pojo.vo.OperLogVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OperlogMapper {
    Page<OperLogVo> list(PageOperLogDto dto);

    void delete(List<Integer> ids);

    @Delete("delete from oper_log")
    void clean();

    void insert(OperLogVo operLogVo);

    @Select("select user_name from user where user_id = #{id}")
    String getName(Integer id);

    List<OperLogVo> getInfo(List<Integer> ids);
}
